#ifndef __XOBJECT_H__
#define __XOBJECT_H__

typedef struct __XOBJECT XOBJECT;
typedef void (* DestroyAtomPtr)(void * atom);

 
struct __XOBJECT{
 
	atomic_t lRefCount;
 
	DestroyAtomPtr destroyPtr;
};
 
 
#ifdef __cplusplus
extern "C" {
#endif 
long xobject_addref(void * atom);
long xobject_release(void * atom);
#ifdef __cplusplus
}
#endif  

#endif
